package com.offcn.common.entity;

import lombok.Data;

import java.util.List;


/**
 * 页面结果
 *
 * @author 秋林
 * @date 2022/10/13 12:13:49
 */
@Data
public class PageResult<T> {
    /**
     * 总记录数
     */
    private Long total;
    /**
     * 记录
     */
    private List<T> rows;

    public PageResult(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PageResult() {
    }

    //getter and setter ......
}